package com.iona.dao;

import org.hibernate.criterion.Restrictions;

import com.iona.dao.BaseDAO;
import com.iona.domain.PartDisPurview;

public class PartDisPurviewDAO extends BaseDAO {
	public PartDisPurview findByPartDisAndPurview(Integer part, Integer pur) {
		return (PartDisPurview) getSession()
				.createCriteria(PartDisPurview.class)
				.add(Restrictions.eq("partDis.id", part))
				.add(Restrictions.eq("purview.id", pur)).uniqueResult();
	}

}
